package com.study.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import com.study.entity.*;

//基于注解驱动实现
@Configuration
public class MyConfiguration {

    @Bean
    public User user() {
        User user = new User("xiaoming", 12);
        return user;
    }
}

